const getDefaultState = () => {
  return {
    tabbarList: [ //页面tabbar配置
      {
        selectIconPath: "", // 切换选择的图标路径
        pagePath: "pages/index/index",
			  iconPath: "/static/tabbar/home.png", // 未选中图标路径
			  selectedIconPath: "/static/tabbar/home-active.png", // 选中图标路径
			  text: "首页"
      },
      {
        selectIconPath: "",
        pagePath: "pages/category/index",
        iconPath: "/static/tabbar/category.png",
        selectedIconPath: "/static/tabbar/category-active.png",
        text: "分类"
      },
      {
        selectIconPath: "",
        pagePath: "pages/dialog/index",
        iconPath: "/static/tabbar/dialog.png",
        selectedIconPath: "/static/tabbar/dialog-active.png",
        text: "对话"
      },
      {
        selectIconPath: "",
        pagePath: "pages/shopcar/index",
        iconPath: "/static/tabbar/shopcar.png",
        selectedIconPath: "/static/tabbar/shopcar-active.png",
        text: "购物车"
      },
      {
        selectIconPath: "",
        pagePath: "pages/user/index",
        iconPath: "/static/tabbar/user.png",
        selectedIconPath: "/static/tabbar/user-active.png",
        text: "用户"
      }
    ]
  }
}
const state = getDefaultState()
const mutations = {
  SET_TABBARLIST: (state, data) => {
    state.tabbarList = data
  }
}
const actions = {}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}